package com.example.picturestorage.service;

import com.example.picturestorage.bean.Publisher;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface PublisherService {
    void addPublisher(Publisher publisher);
    List<Publisher> findAllPublisher();
    List<Publisher> findAllPublisherWithBooks();
    void updatePublisher(String name,Integer id);
    void deletePublisher(Integer id);
    Publisher findPublisherById(Integer id);
    Publisher findPublisherByName(String name);
    int insertPublishers(List<Publisher> list);

}
